#include "KinectMsg.h"

KinectMsg::KinectMsg() {
	memset(this->depthMD,0,dataSize*sizeof(XnDepthPixel));
	memset(this->sceneMD,0,dataSize*sizeof(XnLabel));
}

KinectMsg::~KinectMsg() {

}

KinectMsg::KinectMsg(const KinectMsg& msg) {
	this->body = msg.body;
	memcpy(this->depthMD,msg.depthMD,dataSize*sizeof(XnDepthPixel));
	memcpy(this->sceneMD,msg.sceneMD,dataSize*sizeof(XnLabel));
}

KinectMsg & KinectMsg::operator = (const KinectMsg &msg) {
	this->body = msg.body;
	memcpy(this->depthMD,msg.depthMD,dataSize*sizeof(XnDepthPixel));
	memcpy(this->sceneMD,msg.sceneMD,dataSize*sizeof(XnLabel));
	return *this;
}